<template>
  <div class="home">
    <!-- Hero Section -->
    <section class="hero">
      <div class="container">
        <div class="hero-content">
          <h1 class="hero-title">
            智能图片视频去水印
            <span class="highlight">AI 技术驱动</span>
          </h1>
          <p class="hero-subtitle">
            专业的AI智能图片视频去水印工具，支持批量处理，高质量修复，
            让您的作品更加完美，无需专业技能即可轻松去除各种水印。
          </p>
          <div class="hero-actions">
            <router-link to="/register">
              <a-button type="primary" size="large">
                免费试用
              </a-button>
            </router-link>
            <router-link to="/login">
              <a-button size="large">
                立即登录
              </a-button>
            </router-link>
          </div>
        </div>
      </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="features">
      <div class="container">
        <h2 class="section-title">核心功能</h2>
        <div class="features-grid">
          <div class="feature-card">
            <div class="feature-icon">
              <PictureOutlined />
            </div>
            <h3>智能图片去水印</h3>
            <p>支持JPG、PNG、WEBP等格式，AI智能识别水印位置，高质量修复背景。</p>
          </div>
          <div class="feature-card">
            <div class="feature-icon">
              <VideoCameraOutlined />
            </div>
            <h3>视频水印移除</h3>
            <p>支持MP4、AVI、MOV等格式，逐帧处理，保持视频质量。</p>
          </div>
          <div class="feature-card">
            <div class="feature-icon">
              <AppstoreOutlined />
            </div>
            <h3>批量处理</h3>
            <p>支持多文件同时上传，批量处理，提高工作效率。</p>
          </div>
          <div class="feature-card">
            <div class="feature-icon">
              <ThunderboltOutlined />
            </div>
            <h3>快速处理</h3>
            <p>云端AI处理，速度快，无需下载软件，随时随地使用。</p>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA Section -->
    <section class="cta">
      <div class="container">
        <div class="cta-content">
          <h2>开始您的去水印之旅</h2>
          <p>立即注册，享受免费试用额度，体验AI智能去水印的强大功能。</p>
          <router-link to="/register">
            <a-button type="primary" size="large">
              免费注册
            </a-button>
          </router-link>
        </div>
      </div>
    </section>
  </div>
</template>

<script setup>
import { 
  PictureOutlined, 
  VideoCameraOutlined, 
  AppstoreOutlined, 
  ThunderboltOutlined 
} from '@ant-design/icons-vue'
</script>

<style scoped>
.home {
  min-height: 100vh;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.highlight {
  color: #ffd700;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.features {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 60px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 48px;
  color: #1890ff;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
</style> 